package com.cloud.provider.controller;

import com.cloud.provider.service.ProviderDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProviderDemo {


    @Autowired
    private ProviderDemoService providerDemoService;
    @GetMapping("/hello")
    public String hello(){
        return providerDemoService.sayHello();
    }

    @GetMapping("/insert")
    public void insertUser(){
        providerDemoService.insertUser();
    }
}
